package net.oschina.allchat.server.framework.im;

import net.oschina.allchat.protocol.im.stanza.Message;
import net.oschina.allchat.server.framework.core.connection.IConnectionContext;
import net.oschina.allchat.server.framework.pipe.processing.IMessageProcessor;

public abstract class StandardMessageProcessor implements IMessageProcessor {

	@Override
	public boolean process(IConnectionContext context, Message message) {
		if (message.getType() == Message.Type.GROUP_CHAT)
			return false;
		
		return doProcess(context, message);
	}

	protected boolean doProcess(IConnectionContext context, Message message) {
		// TODO Auto-generated method stub
		return false;
	}
}
